package entity.DiscoverRecommend;

import org.json.JSONException;
import org.json.JSONObject;

import entity.AlbumBasic;

/**
 * Created by Administrator on 15-10-21.
 */
public class AlbumRecommend extends AlbumBasic {
    private long playCounts;
    private int isFinished;
    private long trackId;
    private String trackTitle;
    public void parseJSON(JSONObject json) throws JSONException {
        super.parseJSON(json);
        if(json!=null){
            playCounts=json.optLong("playCounts",0);
            isFinished=json.optInt("isFinished", 0);
            trackId=json.getLong("trackId");
            trackTitle=json.getString("trackTitle");

        }
    }

    public long getPlayCounts() {
        return playCounts;
    }

    public void setPlayCounts(long playCounts) {
        this.playCounts = playCounts;
    }

    public String getTrackTitle() {
        return trackTitle;
    }

    public void setTrackTitle(String trackTitle) {
        this.trackTitle = trackTitle;
    }

    public int getIsFinished() {
        return isFinished;
    }

    public void setIsFinished(int isFinished) {
        this.isFinished = isFinished;
    }

    public long getTrackId() {
        return trackId;
    }

    public void setTrackId(long trackId) {
        this.trackId = trackId;
    }
}
